import { Select } from "antd";
import type { PropsType } from "../types/SelectCard.type";

const SelectCard = ({ label, width, options, onChange }: PropsType) => {
  return (
    <div className="flex items-center justify-end">
      <span className="font-normal">{label}：</span>
      <Select style={{ width: width || 180 }} onChange={onChange} options={options} />
    </div>
  );
};

export default SelectCard;
